package com.wx.chapter8.homework05;

/**
 * ClassName:Employee
 * Package :com.wx.chapter8.homework05
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/29 - 16:09
 */
public class Employee {
    private String name;
    private double sal;
    private int salMonth;

    //全年工资计算
    public void printSal() {
        System.out.println(name + " 年工资是: " + (sal * salMonth));
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public int getSalMonth() {
        return salMonth;
    }

    public void setSalMonth(int salMonth) {
        this.salMonth = salMonth;
    }

    public Employee(String name, double sal, int salMonth) {
        this.name = name;
        this.sal = sal;
        this.salMonth = salMonth;
    }
}
